////////////////////////////////////////////////////////////////////////////////
/// @file    uart_txrx_interrupt.h
/// @author  AE TEAM
/// @brief   THIS FILE PROVIDES ALL THE SYSTEM FIRMWARE FUNCTIONS.
////////////////////////////////////////////////////////////////////////////////
/// @attention
///
/// THE EXISTING FIRMWARE IS ONLY FOR REFERENCE, WHICH IS DESIGNED TO PROVIDE
/// CUSTOMERS WITH CODING INFORMATION ABOUT THEIR PRODUCTS SO THEY CAN SAVE
/// TIME. THEREFORE, MINDMOTION SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT OR
/// CONSEQUENTIAL DAMAGES ABOUT ANY CLAIMS ARISING OUT OF THE CONTENT OF SUCH
/// HARDWARE AND/OR THE USE OF THE CODING INFORMATION CONTAINED HEREIN IN
/// CONNECTION WITH PRODUCTS MADE BY CUSTOMERS.
///
/// <H2><CENTER>&COPY; COPYRIGHT MINDMOTION </CENTER></H2>
////////////////////////////////////////////////////////////////////////////////


// Define to prevent recursive inclusion
#ifndef _USART1_INTERRUPT_H_
#define _USART1_INTERRUPT_H_

#ifdef __cplusplus
extern "C" {
#endif
    
// Files includes
#include "mm32g0001.h"
#include  "stdio.h"
#include "string.h"

/* Exported types *****************************************************************************************************/
#define UART_REC_LEN     64
/* Exported constants *************************************************************************************************/

/* Exported macro *****************************************************************************************************/

/* Exported variables *************************************************************************************************/


#undef EXTERN

#ifdef _USART_TXRX_INTERRUPT_C_
#define EXTERN
#else
#define EXTERN extern
#endif

EXTERN uint8_t USART_RxBuff[UART_REC_LEN];
EXTERN uint16_t USART_RX_STA;

/* Exported functions *************************************************************************************************/
void USART1_Config(u32 Baudrate);
void USART_SendGroup(const uint8_t *pBuff, uint16_t length);
void USART_Send_Byte(u8 dat);

#ifdef __cplusplus
}
#endif

#endif /* _TIM14_TIMEBASE_H_ */


/********************************************** (C) Copyright MindMotion **********************************************/
